package com.marktotop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.marktotop.entity.Salary;
import com.baomidou.mybatisplus.extension.service.IService;
import com.marktotop.response.ResultBean;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author marktotop
 * @since 2021-05-23
 */
public interface ISalaryService extends IService<Salary> {
    /**
     * 分页显示所有工资账套信息
     * @return
     */
    ResultBean findAllByPage(Integer currentPage,
                             Integer size, @Param("salary") Salary salary);

    /**
     * 添加账套信息
     * @param salary
     */
    ResultBean addSalary(Salary salary);
}
